package org.rcgwt.client.ui.calendar.i18n;

import com.google.gwt.core.client.GWT;

/**
 * Provides a datetime literal format depending on local language (for datetime
 * structure uniformization)
 * 
 * @author Elian ORIOU
 * 
 */

public class CalendarLiteral {

	private static final ConstantsProvider constants = GWT
			.create(ConstantsProvider.class);

	private static final String DATE_TIME_LITERAL = constants.dateTimeLiteral();
	private static final String DATE_LITERAL = constants.dateLiteral();

	private static final String DATE_PATTERN = constants.datePattern();
	private static final String DATE_TIME_PATTERN = constants.dateTimePattern();

	public static String getDateTimeLitteral() {
		return DATE_TIME_LITERAL;
	}

	public static String getDateLitteral() {
		return DATE_LITERAL;
	}

	public static String getDateTimePattern() {
		return DATE_TIME_PATTERN;
	}

	public static String getDatePattern() {
		return DATE_PATTERN;
	}
}
